#pragma once
#include "Windows.h"
#include "user_types.h"
#include "user_dbg.h"

/*
NTSYSAPI
NTSTATUS
NTAPI
NtProtectVirtualMemory(
    IN HANDLE               ProcessHandle,
    IN OUT PVOID* BaseAddress,
    IN OUT PULONG           NumberOfBytesToProtect,
    IN ULONG                NewAccessProtection,
    OUT PULONG              OldAccessProtection);
*/
typedef NTSTATUS (NTAPI* _NtProtectVirtualMemory)(IN HANDLE ProcessHandle, IN OUT PVOID* BaseAddress, IN OUT PULONG NumberOfBytesToProtect, IN ULONG NewAccessProtection, OUT PULONG OldAccessProtection);
NTSTATUS nt_protect_virtual_memory(IN HANDLE handle, IN OUT PVOID* addr, IN OUT PULONG size, IN ULONG new_access_protection, OUT PULONG old_access_protection);
